home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / mrcry204.zip / CARDIOID.EKA < prev    next >
Text File  |  1991-03-04  |  257b  |  11 lines

  1. ; Graph of cardioid, a heart-shaped curve.
  2. ; Example of parametric plot
  3.  
  4. r(t) := 2 (COS(t) + 1)        ; equation in polar coords
  5. x(t) := r(t) COS(t)           ; polar to rectangular conversion
  6. y(t) := r(t) SIN(t)
  7.  
  8. PLOT y
  9. XAXIS x
  10. GBOUNDS 0, 2 PI
  11.